const path = require("path");

// 开发环境
const DEV_SERVER = "http://192.168.0.245:58886/";
const BETA_SERVER = "https://app.scxll.cn/";
const PROD_SERVER = "";
// 代理目标
const PROXY_TARGET = BETA_SERVER;

// ---------------------------------------------------------------------------------

module.exports = {
  productionSourceMap: false, // 不要SourceMap
  pluginOptions: {
    "style-resources-loader": {
      preProcessor: "less",
      patterns: [path.resolve(__dirname, "./src/style/theme.less")],
    },
  },
  devServer: {
    port: 8080,
    proxy: PROXY_TARGET,
  },
};
